<template>
  <div>
    <div>
      <div class="top"></div>
      <div class="desc">{{ detailInfo.desc }}</div>
      <div class="buttom"></div>
    </div>
    <div>
      <div class="item-text">{{ detailInfo.detailImage[0].key }}</div>
      <div
        v-for="(item, index) in detailInfo.detailImage[0].list"
        :key="index"
        class="detailImage"
      >
        <img v-lazy="item" @load="detailIImageload" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["detailInfo"],
  methods: {
    detailIImageload() {
      this.$bus.$emit("detailItemImageLoad");
    },
  },
};
</script>

<style scoped>
.desc {
  font-size: 14px;
  margin: 10px;
}
.top {
  width: 100px;
  border-bottom: solid 1px rgb(0, 0, 0, 0.5);
  margin: 20px 0 20px 20px;
  position: relative;
}
.top::before {
  content: "";
  height: 5px;
  width: 5px;
  background-color: #333;
  position: absolute;
  bottom: 0;
}
.buttom {
  width: 100px;
  border-bottom: solid 1px rgb(0, 0, 0, 0.5);
  margin: 20px 20px 20px 0;
  float: right;
  position: relative;
}
.buttom::before {
  content: "";
  height: 5px;
  width: 5px;
  background-color: #333;
  position: absolute;
  bottom: 0;
  right: 0;
}
.item-text {
  font-size: 16px;
  margin: 20px 0 0 20px;
}
.detailImage img {
  width: 100%;
}
</style>
